<template>
	<view class="">
		<view class="head">
			<!-- 标题栏 -->
			<view class="title">
				<image src="../static/img/Return arrow(2).png" mode=""></image>
				<text>基金超市</text>
				<view class="title-img">
					<image src="../static/img/pk.png" mode=""></image>
					<image src="../static/img/funnel.png" mode=""></image>
				</view>
			</view>
			<!-- 搜索栏 -->
			<view class="search">
				<u-search placeholder="请输入基金名称/代码" :animation="true" :show-action="false" @focus="focus"></u-search>
			</view>
			<!-- 选项 -->
			<view class="option">
				<u-tabs :list="list" :is-scroll="false" :current="current" @change="change"
					active-color="#00d5c7"></u-tabs>
			</view>
			<view class="ash"></view>
		</view>
		<!-- 标头 -->
		<view class="detail">
			<view class="">基金名称</view>
			<view class="detail-right">
				<text class="">最新净值</text>
				<text class="">日跌涨幅</text>
			</view>
		</view>
	</view>


</template>

<script>
	export default {
		data() {
			return {
				list: [{
					name: '自选'
				}, {
					name: '全部'
				}, {
					name: '股票'
				}, {
					name: '混合'
				}, {
					name: '债卷'
				}, {
					name: '货币'
				}, {
					name: '保本'
				}],
				current: 1
			};
		},
		methods: {
			change(index) {
				this.current = index;
			},
			// 搜索
			focus() {
				uni.navigateTo({
					url: "/pages/fundShop/fundSearch"
				})
			}
		}
	}
</script>

<style scoped>
	.head {
		background-color: white;
	}

	.title {
		height: 80rpx;
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 0rpx 20rpx;
		font-size: 35rpx;
		font-weight: 600;
	}

	.title image {
		width: 50rpx;
		height: 50rpx;
	}

	.title text {
		margin-left: 20rpx;
	}

	.search {
		width: 90%;
		margin-left: 40rpx;
		margin-top: 30rpx;
	}

	.option {
		width: 100%;
	}

	/* 标头 */
	.detail {
		display: flex;
		justify-content: space-around;
		padding-left: 80rpx;
		font-size: 30rpx;
		background-color: white;
		height: 80rpx;
		line-height: 80rpx;
		border-bottom: 1rpx solid #dcdcdc;
	}

	.detail-right {
		width: 50%;
		display: flex;
		justify-content: space-around;
		margin-left: 160rpx;
	}

	.ash {
		background-color: #f5f5f5;
		height: 30rpx;
	}
</style>